package com.thinkgem.jeesite.common.utils;

import java.util.List;

/**
 * 预览结果类
 * @author fanqinglong
 *
 */
public class Preview<T> {
	/**
	 * 校验成功的list
	 */
	private List<T> validList;
	/**
	 * 校验失败的list
	 */
	private List<T> failList;
	/**
	 * 成功条数
	 */
	private Integer validNum;
	/**
	 * 失败条数
	 */
	private Integer failNum;
	/**
	 * 缓存key,固定从temp缓存中取
	 */
	private String key;
	
	public List<T> getValidList() {
		return validList;
	}
	public void setValidList(List<T> validList) {
		this.validList = validList;
	}
	public List<T> getFailList() {
		return failList;
	}
	public void setFailList(List<T> failList) {
		this.failList = failList;
	}
	public Integer getValidNum() {
		return validList==null?0:validList.size();
	}
	public void setValidNum(Integer validNum) {
		this.validNum = validNum;
	}
	public Integer getFailNum() {
		return failList==null?0:failList.size();
	}
	public void setFailNum(Integer failNum) {
		this.failNum = failNum;
	}
	public String getKey() {
		return key;
	}
	public void setKey(String key) {
		this.key = key;
	}
}
